Recette n 03 Stockage Internal et External
Page  06

File tmpFile = new File(Environment.
getExternalStorageDirectory() + File.separator + test);
if(tmpFile.createNewFile()) 
{
	System.out.println(Created File);
} 
else 
{
	if(tmpFile.exists())
	System.out.println(File already exists);
	else
	System.out.println(File does not exist AND cannot be created.);
}
FileInputStream fis = null;
FileOutputStream fos = null;
if(tmpFile.canRead())
FileInputStream(tmpFile);
if(tmpFile.canWrite())
fos = new FileOutputStream(tmpFile);